extends CanvasLayer

@onready var effect: ColorRect = $effect

func _ready() -> void:
	effect.color.a=0.0

func _flash_out():
	var tween=create_tween()
	tween.tween_property(effect,"color:a",1.0,0.05)
	return tween

func _flash_in():
	var tween=create_tween()
	tween.tween_property(effect,"color:a",0.0,0.3)
	return tween
